package com.lili.operate.service;

import com.lili.model.operate.ArticleCategory;

import java.util.List;
import java.util.Map;

public interface ArticleCategoryService {

    /**
     * 新增文章分类
     * @param articleCategory
     * @return
     */
    public int saveArticleCategory(ArticleCategory articleCategory);

    /**
     * 查询所有的文章类别及其子类
     * @return
     */
    public List<Map> queryArticleCategory();


    /**
     * 根据id更新文章分类类别
     * @return
     */
    public int updateArticleCategory(ArticleCategory articleCategory);


    /**
     * 根据id 删除分类
     * @param id
     * @return
     */
    public int deleteArticleCategory(long id);


}
